Return to doc.sitecore.com

  Creating a New Project in SVN
Prev Next

The following steps should be performed on a developer’s workstation having access to the SVN server:

  1. Start SVN Repository Browser
    /upload/sdn5/developer/team development/team_development 3.png
  2. Point it to your developer server (where a new repository has been created and SVN server has been started):
    /upload/sdn5/developer/team development/team_development 4.png
  3. In the Repository Browser, right-click on the server root and choose ‘Create new folder’:
  4. Checkout the new folder to a local disk
     
    /upload/sdn5/developer/team development/team_development 6.png
  5. As a result you should have a working folder (so called ‘sandbox’) on the workstation hard drive
    /upload/sdn5/developer/team development/team_development 7.jpg
  6. Now copy the entire Sitecore solution root to the sandbox.
  7.  Add the files from your solution to SVN. DO NOT ADD PARTS OF SITECORE DISTRIBUTION TO SVN UNLESS YOU WANT TO MAKE AND TRACK MODIFICATIONS TO THEM. 
     For example there is a custom XSL rendering which needs to be stored in SVN. 
     Right-click XSL folder and select TortoiseSVN » Add
  8. In the ‘Add’ dialog, uncheck any files which are not supposed to be tracked and click OK: 
    It is possible to add many files in different parts of the site to SVN in that way.
    /upload/sdn5/developer/team development/team_development 10.png
  9. To commit the changes, right-click on the working folder (site root) and choose SVN Commit: 
    Note: all modifications are first made in a local working folder (sandbox) and then should be committed to the repository to become available to all developers.
  10. It is possible to add a revision comment upon commitment which will be stored in the file and project history and will be available later.
    /upload/sdn5/developer/team development/team_development 12.png

Please note that Tortoise SVN automatically tracks local modifications and marks modified files and directories with special overlay icons.

Tortoise SVN also adds custom columns to the ‘Detailed’ folder view in explorer which show SVN-related information about the item.


Prev Next